package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TriggerEvent {

    private int beginIndex;
    private int endIndex;
    private boolean insert;
    private boolean delete;
    private boolean update;
    private IdentifierList triggerColumnList;

    public TriggerEvent(int beginIndex,
                        int endIndex,
                        boolean insert,
                        boolean delete,
                        boolean update,
                        IdentifierList triggerColumnList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.insert = insert;
        this.delete = delete;
        this.update = update;
        this.triggerColumnList = triggerColumnList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isInsert() {
        return insert;
    }

    public boolean isDelete() {
        return delete;
    }

    public boolean isUpdate() {
        return update;
    }

    public IdentifierList getTriggerColumnList() {
        return triggerColumnList;
    }

}
